win, doc: document per-drive current working dir#13330
win, doc: document per-drive current working dir#13330bzoz wants to merge 2 commits intonodejs:masterfrom
Conversation
Add note to fs.md and path.md about Windows using per-drive current working directory. Fixes: nodejs#9378
| <stack trace.> | ||
| ``` | ||
|
|
||
| *Note:* On Windows Node follows the concept of per-drive working directory. |
There was a problem hiding this comment.
Should be Node.js although it's probably enough to just say Windows follows... as Node.js is not doing anything different from the OS behavior.
|
|
||
| *Note:* On Windows Node follows the concept of per-drive working directory. | ||
| This behavior can be observed when using a drive path without backslash, e.g. | ||
| `path.resolve('c:\\')` can potentially return different result than |
There was a problem hiding this comment.
return different -> return a different
| ``` | ||
|
|
||
| *Note:* On Windows Node follows the concept of per-drive working directory. | ||
| This behavior can be observed when using a drive path without backslash, e.g. |
There was a problem hiding this comment.
without backslash -> without a backslash
| ``` | ||
|
|
||
| *Note:* On Windows Node follows the concept of per-drive working directory. | ||
| This behavior can be observed when using a drive path without backslash, e.g. |
There was a problem hiding this comment.
Nit: , -> . and e.g. -> For example,.
|
|
||
| *Note:* On Windows Node follows the concept of per-drive working directory. | ||
| This behavior can be observed when using a drive path without backslash, e.g. | ||
| `fs.readdirSync('c:\\')` can potentially return different result than |
There was a problem hiding this comment.
return different result -> return a different result
| *Note:* On Windows Node follows the concept of per-drive working directory. | ||
| This behavior can be observed when using a drive path without backslash, e.g. | ||
| `fs.readdirSync('c:\\')` can potentially return different result than | ||
| `fs.readdirSync('c:')`. For more information see |
Trott
left a comment
There was a problem hiding this comment.
LGTM with (or without) nits addressed.
|
Updated, PTAL |
|
Landed in 422722f |
|
This does not land cleanly in LTS. Please feel free to manually backport. Please also feel free to replace do-not-land if it is being backported |
Add note to
fs.mdandpath.mdabout Windows using per-drive current working directory.Fixes: #9378
Checklist
Affected core subsystem(s)
doc